package com.xhl.vo;

import java.io.Serializable;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

@Repository
@Scope("prototype")
public class OrderItemVO implements Serializable {


    private static final long serialVersionUID = 1L;

    //

    private int oiid;        //id
    private int pid;    //	ProductVO
    private int oid;    //	OrderVO
    private int uid;    //
    private int number;    //

    private ProductVO product;

    private Long orderSum;    //近30天销量
    private Long reviewSum;    //留言数


    public int getOiid() {
        return oiid;
    }

    public void setOiid(int oiid) {
        this.oiid = oiid;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getOid() {
        return oid;
    }

    public void setOid(int oid) {
        this.oid = oid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }


    public ProductVO getProduct() {
        return product;
    }

    public void setProduct(ProductVO product) {
        this.product = product;
    }

    public Long getOrderSum() {
        return orderSum;
    }

    public void setOrderSum(Long orderSum) {
        this.orderSum = orderSum;
    }

    public Long getReviewSum() {
        return reviewSum;
    }

    public void setReviewSum(Long reviewSum) {
        this.reviewSum = reviewSum;
    }

    @Override
    public String toString() {
        return "OrderItemVO [oiid=" + oiid + ", pid=" + pid + ", oid=" + oid + ", uid=" + uid + ", number=" + number
                + ", product=" + product + ", orderSum=" + orderSum + ", reviewSum=" + reviewSum + "]";
    }


}
